<%@ page pageEncoding="UTF-8"%>
<%@include file="inc-header.jsp"%>
    <div class="main">
        <div class="item mag0">
	<%@include file="inc-menu.jsp"%>
 <div class="portlet" id="yw0">
<div class="portlet-content">
    <div class="bg_user">
        <ul class="list_style">
            <li class="user-name clearfix">
                <p class="fl">Hi:  
                </p>
                <!--<a class="ic-right fl" title="" href="http://nguyenhoan.cucdinh.mobi"><strong>Shop</strong></a>-->
            </li>
            
                    </ul>
    </div>
    </div>
<script type="text/javascript">
    function addItem(catId,dataId){
        var strUrl = "/config/ajaxAddItem";
        $.ajax({
            type: "POST",
            url: strUrl,
            data: {
                catId:catId,
                dataId:dataId 
            },
            success: function(msg){
                if(msg==1){    
                    var html = $("#item_"+catId+"_"+dataId).html();
                    html = '<li id="item_selected_'+catId+'_'+dataId+'" class="fl" onclick="removeItem('+catId+','+dataId+')">'+html+'</li>';
                    $("#area_selected").append(html);
                }

            }          
        });
    }
    function removeItem(catId,dataId){
        var strUrl = "/config/ajaxRemoveItem";
        $.ajax({
            type: "POST",
            url: strUrl,
            data: {
                catId:catId,
                dataId:dataId 
            },
            success: function(msg){
                if(msg==1){
                    $('#item_selected_'+catId+'_'+dataId+'').remove();
                }

            }          
        });
    }
</script>    
</div>        <div class="steps bg_f9 pad10">
            <ul class="list_style clearfix">
                <li class="fl active">
                    <p class="arr-l nobg">
                        <span><strong>1</strong></span>
                        <a title="" href="#"><strong>Chọn sản phẩm</strong></a>
                    </p>
                </li>
                <li class="fl">
                    <p class="arr-l">
                        <span><strong>2</strong></span>
                        <a title="" href="#"><strong>Chọn kiểu hiển thị</strong></a>
                    </p>
                </li>
                <li class="fl">
                    <p class="arr-l">
                        <span><strong>3</strong></span>
                        <a title="" href="#"><strong>Chọn giao diện</strong></a>
                    </p>
                </li>
                <li class="fl">
                    <p class="arr-l">
                        <span><strong>4</strong></span>
                        <a title="" href="#"><strong>Lấy mã nhúng</strong></a>
                    </p>
                </li>

            </ul>
        </div>

        <form method="POST">
            <div class="item revenue mag0">
                <div class="bg_gray2">
                    <span class="s18 cl006fbc"><strong class="selec-prod">Chọn sản phẩm</strong></span>
                </div>
                <div class="stat_reven">
                    <div class="pad10">
                                                <p><strong>Nhập tên mã nhúng</strong></p>
                        <input type="text" name="title_embed" value="" style="width:98%;height:20px">
                    </div> 
                </div>
            </div>
            <div class="item">
                <div class="bg_gray">
                    <ul class="list_style clearfix">
                        <li class="fl active">
                            <a class="block" title="" href="">
                                Game online 
                            </a>
                        </li>
                        <li class="fl ">
                            <a class="block" title="" href="/ma-nhung-tc0">
                                Game offline
                            </a>
                        </li>
                        <li class="fl ">
                            <a class="block" title="" href="/ma-nhung-tc3">
                                Ứng dụng
                            </a>
                        </li>                         
                    </ul>
                </div>
                                    <div class="sub_list">
                        <ul class="list_style clearfix">            
                            <li class="fl active"><a class="block" title="" href="/ma-nhung-tc1-td1">Mới</a></li>             
                            <li class="fl "><a class="block" title="" href="/ma-nhung-tc1-td3">Hot</a></li>                          
                            <li class="fl "><a class="block" title="" href="/ma-nhung-tc1-td2">Hút SMS</a></li>
                                                            <li class="fl "><a class="block" title="" href="/ma-nhung-tc1-td4">Hút Card</a></li>
                                                        </ul>    
                    </div>
                                    <div class="list-game">
                    <p class="pad10">Click vào từng sản phẩm để chọn</p>
                    <ul class="list_style set-embeb1 clearfix">
                                                    <li class="fl" id="item_11_186" onclick="addItem('11','186')">
                                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                    <tr>
                                        <td width="85">
                                            <img width="85" src="http://cucdinh.mobi/upload/game/2013/0305/123gun1.gif" onerror="this.src='http://taoviec.com/themes//images/farmvui52.png'">
                                        </td>
                                        <td class="info-data">
                                            <span class="clbue s16">12Guns - Phiên bản Gunny phong cách mới</span>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                                                        <li class="fl" id="item_11_178" onclick="addItem('11','178')">
                                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                    <tr>
                                        <td width="85">
                                            <img width="85" src="http://cucdinh.mobi/upload/game/2013/0104/thong-linh2.gif" onerror="this.src='http://taoviec.com/themes//images/farmvui52.png'">
                                        </td>
                                        <td class="info-data">
                                            <span class="clbue s16">Thống lĩnh thiên hạ</span>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                                                        <li class="fl" id="item_11_177" onclick="addItem('11','177')">
                                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                    <tr>
                                        <td width="85">
                                            <img width="85" src="http://cucdinh.mobi/upload/game/2012/1225/tieu-hoang-de.gif" onerror="this.src='http://taoviec.com/themes//images/farmvui52.png'">
                                        </td>
                                        <td class="info-data">
                                            <span class="clbue s16">Minh Châu - Tam Quốc phân tranh</span>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                                                        <li class="fl" id="item_11_176" onclick="addItem('11','176')">
                                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                    <tr>
                                        <td width="85">
                                            <img width="85" src="http://cucdinh.mobi/upload/game/2012/1220/hoang-de9.gif" onerror="this.src='http://taoviec.com/themes//images/farmvui52.png'">
                                        </td>
                                        <td class="info-data">
                                            <span class="clbue s16">Hoàng đế Online - Đệ nhất Anh hùng</span>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                                                        <li class="fl" id="item_11_175" onclick="addItem('11','175')">
                                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                    <tr>
                                        <td width="85">
                                            <img width="85" src="http://cucdinh.mobi/upload/game/2012/1219/zozo-bong-da1.gif" onerror="this.src='http://taoviec.com/themes//images/farmvui52.png'">
                                        </td>
                                        <td class="info-data">
                                            <span class="clbue s16">Zozo - Mạng xã hội bóng đá</span>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                                                        <li class="fl" id="item_11_174" onclick="addItem('11','174')">
                                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                    <tr>
                                        <td width="85">
                                            <img width="85" src="http://cucdinh.mobi/upload/game/2012/1207/Iwin2.gif" onerror="this.src='http://taoviec.com/themes//images/farmvui52.png'">
                                        </td>
                                        <td class="info-data">
                                            <span class="clbue s16">IWin Online - Phiên bản mới 2.5.7</span>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                                                        <li class="fl" id="item_11_173" onclick="addItem('11','173')">
                                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                    <tr>
                                        <td width="85">
                                            <img width="85" src="http://cucdinh.mobi/upload/game/2012/1207/Gopet2.gif" onerror="this.src='http://taoviec.com/themes//images/farmvui52.png'">
                                        </td>
                                        <td class="info-data">
                                            <span class="clbue s16">GoPet - GAME ĐẤU THÚ HÀNG ĐẦU</span>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                                                        <li class="fl" id="item_11_172" onclick="addItem('11','172')">
                                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                    <tr>
                                        <td width="85">
                                            <img width="85" src="http://cucdinh.mobi/upload/game/2012/1207/Gofarm2.gif" onerror="this.src='http://taoviec.com/themes//images/farmvui52.png'">
                                        </td>
                                        <td class="info-data">
                                            <span class="clbue s16">GoFarm - Nông dân thứ thiệt</span>
                                        </td>
                                    </tr>
                                </table>
                            </li>
                                                </ul>
                    <div class="pad10">
                        <ul class="paging clearfix">
                            <li class="fl active"><a href="/ma-nhung-tc1-td1/1" >1</a></li><li class="fl"><a href="/ma-nhung-tc1-td1/2">2</a></li><li class="fl"><a href="/ma-nhung-tc1-td1/3">3</a></li><li class="fl"><a href="#"><strong>...</strong></a></li><li class="fl"><a href="/ma-nhung-tc1-td1/4">4</a></li><li class="fl end"><a href="/ma-nhung-tc1-td1/2">Sau</a></li>                        </ul>
                    </div>
                    <div class="pad10 game-seled" id="form_item_selected">
                        <div class="listgamed">
                            <ul class="list_style set-embeb1 clearfix" id="area_selected">
                                             
                            </ul>
                        </div>
                                                <div class="embeb_avble">
                            <p><strong class="clf60">Mã nhúng có sẵn</strong></p>
                            <ul class="list_style">
                                                                    <li><a title="" href="/config/codeDetailAdmin?embed_id=701">Bộ Game Online chia sẻ %  khủng</a></li>
                                                                    <li><a title="" href="/config/codeDetailAdmin?embed_id=487">Những Game Hot 2012 (Hút SMS và Thẻ)</a></li>
                                                                    <li><a title="" href="/config/codeDetailAdmin?embed_id=501">Game Online hút tiền khủng</a></li>
                                                                    <li><a title="" href="/config/codeDetailAdmin?embed_id=502">Bộ game offline hút sms khủng</a></li>
                                                                    <li><a title="" href="/config/codeDetailAdmin?embed_id=503">Bộ game giải trí nhẹ nhàng hút tiền khủng</a></li>
                                                                    <li><a title="" href="/config/codeDetailAdmin?embed_id=504">Bộ game bài cực đỉnh</a></li>
                                                                    <li><a title="" href="/config/codeDetailAdmin?embed_id=505">Game giả cổ 3d đặc sắc</a></li>
                                                            </ul>
                        </div>
                                            </div>                    
                </div>
            </div>
            <div class="item">
                <div class="bg-info">
                    <ul class="list_style">
                        <li class="clearfix nobg">
                            <div class="img-orage fl clearfix">
                                <input name="submit_b1" type="submit" value="Tiếp theo" class="r-img-orage">
                            </div>
                            <span class="btn-regis fl"><a href="/ma-nhung?submit=delete">Hủy</a></span>
                        </li>
                    </ul>
                </div>
            </div>
        </form>
        <p class="reven-dt pad-l10"><a class="s14" title="" href="/danh-sach-ma-nhung">Danh sách mã nhúng</a></p>
        <!-- box footer -->
        <div class="portlet" id="yw1">
<div class="portlet-content">
<p class="mag0 link-top">
    <a title="" href="#">Lên đầu trang</a>
</p>
<script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-34102666-1']);
    _gaq.push(['_trackPageview']);

    (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();

        </script>
<%@include file="inc-footter.jsp"%>